package com.easy.dev.customization;

import io.swagger.models.Swagger;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
import springfox.documentation.service.Documentation;

@Primary
@Component("ServiceModelToSwagger2Mapper")
public class ServiceModelToSwagger2Mapper extends springfox.documentation.swagger2.mappers.ServiceModelToSwagger2MapperImpl {
 
    @Override
    public Swagger mapDocumentation(Documentation from) {
        Swagger swagger=super.mapDocumentation(from);
        swagger.setPaths( mapApiListings( from.getApiListings() ) );
        return swagger;
    }


}